import java.io.Serializable;

public class TrueOrFalseQuestion implements HaveAnswer, Serializable {
    private static final long serialVersionUID = 7445798388824016681L;
    transient public static final int LINE_NUMBER = 2;
    transient public static final double SCORE_VALUE = 10.0;
    private String question;
    private String answer;

    public TrueOrFalseQuestion(String question, String answer) {
        this.question = question;
        this.answer = answer;
    }
    public  TrueOrFalseQuestion(String[] args) {
        question = args[0];
        answer = args[1];

    }

    public String getQuestion() {
        return question;
    }

    public String getAnswer() {
        return answer;
    }

    @Override
    public String toString() {
        return "判断题{" +
                "题干='" + question + '\'' +
                ", 答案=" + answer +
                '}';
    }
}
